package io.qar.skus.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.qar.commons.tools.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import io.qar.commons.mybatis.dto.CreateAndUpdatedDTO;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
* SKU表
*
* @author yyyyjinying 1020066395@qq.com
* @since 3.0 2024-06-10
*/
@Data
@ApiModel(value = "SKU表")
public class SkusDTO extends CreateAndUpdatedDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "SKU ID")
    private Long skuId;
    @ApiModelProperty(value = "关联的菜品ID")
    private Long dishId;
    @ApiModelProperty(value = "口味")
    private String flavor;
    @ApiModelProperty(value = "规格（JSON格式）")
    private String specification;
    private Integer isDelete;
    @ApiModelProperty(value = "库存数量")
    private Integer stockQuantity;
    @ApiModelProperty(value = "库存预警阈值")
    private Integer stockThreshold;
    @ApiModelProperty(value = "售价")
    private BigDecimal price;
    @ApiModelProperty(value = "成本价")
    private BigDecimal cost;
    @ApiModelProperty(value = "SKU图片URL（如有不同）")
    private String imageUrl;
    @ApiModelProperty(value = "SKU状态")
    private Object status;
    @ApiModelProperty(value = "审批状态")
    private Object approvalStatus;
    @ApiModelProperty(value = "促销活动信息（JSON格式）")
    private Object promotionInfo;
    @ApiModelProperty(value = "版本号")
    private Integer version;
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;
    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;
    @ApiModelProperty(value = "供应商ID")
    private Long supplierId;

}